import axios from '../../src/index'

const date = new Date()

axios({
  method: 'get',
  url: '/base/get?s1=123',
  params: {
    z: {
      a: 1,
      b: null,
      c: '---'
    },
    r: null
  }
}).then(res => console.dir(res))

axios({
  method: 'post',
  url: '/base/post',
  responseType: 'json',
  data: {
    a: 1,
    b: '张三'
  }
}).then(res => console.dir(res))

axios({
  method: 'post',
  url: '/base/buffer',
  data: new Int32Array([21, 564])
})
